﻿
using ShiQuan.DataServer;
using ShiQuan.DataMySql;
using ShiQuan.Unity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ShiQuan.DataAccess;
using ShiQuan.DataRepository;

namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("实例并调用Sql Server...");
            IDatabase sqlserver = DataFactory.GetDataBase("SqlServer");
            Console.WriteLine(sqlserver.Name);

            Console.WriteLine("实例并调用MySql...");
            IDatabase mysql = DataFactory.GetDataBase("MySql");
            Console.WriteLine(mysql.Name);

            Console.ReadLine();
        }
        
    }
}
